<?php
/*
 * Script that automatically downloads the information fetched by $_POST, and
 * store the file as project.txt
 */
$downloadfile="project.txt";

header("Content-Type: text/plain");
header("Content-disposition: attachment; filename=$downloadfile");
header("Content-Transfer-Encoding: binary");
header("Pragma: no-cache");
header("Expires: 0");

echo $_POST["fileContent"];
?>